package com.bailian.spring.ioc.listener_01.listener;

import org.springframework.context.event.ContextClosedEvent;
import org.springframework.context.event.EventListener;

/**
 * @author gaoxu
 * date: Created on 2021/11/2 上午10:38
 */
//@Component
public class AnnotationConfigApplicationContext {

    @EventListener
    public void onContextClosedEvent(ContextClosedEvent event) {
        System.out.println("ContextClosedApplicationListener监听到ContextClosedEvent事件！");
    }
}
